
<template>
  <div>
    <el-container>
      <el-header style="padding:0;">
        <div class="head">
          <div>
            <img src="../../public/20230318112820.png" alt=""
            style="width: 50px;margin-left: 0px;">
          </div>
          <el-menu :default-active="$route.path" class="nav" mode="horizontal"
            background-color="#785545" text-color="#fff" active-text-color="#fcba47" router>
            <el-menu-item index="/home/index" style="height: 60px;" >首页</el-menu-item>
            <el-menu-item index="/home/activity">活动</el-menu-item>
            <el-menu-item index="/home/community">社区</el-menu-item>
            <el-menu-item index="/home/topic">话题</el-menu-item>
            <el-input placeholder="请输入内容" style="width: 250px;" class="input" suffix-icon="el-icon-search" size="small">
            </el-input>
            <el-menu-item index="/usercenter">用户中心</el-menu-item>
            <el-menu-item index="/home/login">登录</el-menu-item>
            <el-menu-item index="/home/register">注册</el-menu-item>
          </el-menu>
          
        </div>
      </el-header>
      <img src="https://img.nyato.com/data/upload/2021/0608/16/60bf2b0367195.jpg" alt="" style="width:100%; height: 280px;">
      <el-main style="padding:0">
        <router-view/>
      </el-main>
    </el-container>
  </div>
</template>
 
<script>
export default {

}
</script>

<style lang="scss" scoped>
.head {
  background-color: #785545;
  display: flex;
  height: 60px;
  justify-content: center;
  .nav {
    width: 1000px;
    height: 61px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    .input{
      &.foucs{
        border-color: #785545;
      }
    }
  }
}
</style>
